forEach

inline fun forEach(action: (L) -> Unit)

Runs action if this is a Left. Returns Unit without any action if this is a Right.

Parameters

action

Action to be run on a Left.